<?php $this->load->view('navmenu');?>
<script type="text/javascript" charset="utf-8">
    // dynamic table
    jQuery('#dyntable').dataTable({
    "sPaginationType": "full_numbers",
    "aaSortingFixed": [[0,'asc']],
    "fnDrawCallback": function(oSettings) {
    jQuery.uniform.update();
    }
    });
</script>
<div class="maincontent">
        	<div class="contentinner">
                <center><?php echo $this->session->flashdata('msg'); ?></center>
            	<h4 class="widgettitle">Laporan Harian Detail</h4>
				<table class="table table-bordered table-invoice">
                      <tr>
                          <td class="width30">Kode Pekerjaan:</td>
                          <td class="width70"><strong><?php echo $selectedLaporanHarian['kode_pekerjaan']." / ".$selectedLaporanHarian['uraian'];?></strong></td>
                      </tr>
                      <tr>
                          <td class="width30">Cuaca:</td>
                          <td class="width70"><strong><?php echo $selectedLaporanHarian['cuaca'];?></strong></td>
                      </tr>
                      <tr>
                          <td class="width30">File Laporan :</td>
                          <td class="width70">
							<div class="mediamgr_content">
							<li>
										<ul class="listfile">
										<a href="<?php echo base_url();?>assets/fileLaporanHarian/<?=$selectedLaporanHarian['file_laporan']?>" data-rel="image"><img src="<?php echo base_url();?>assets/template/img/thumbs/doc.png" width=100 height=100 alt="" /></a>
										<span class="filename"><strong><?=$selectedLaporanHarian['file_laporan']?></strong></span>
										</ul>
										
							</li>
							</div>
							</td>
                      </tr>	  
                      <tr>
                          <td class="width100"><a href="<?php echo base_url();?>index.php/laporan_harian/printLaporanHarian/<?=$selectedLaporanHarian['id_laporan_harian']?>" target="_blank">Print</a></td>
                      </tr>
                  </table>
            	<table class="table table-bordered" id="dyntable">
                    <thead>
                        <tr>
                            <th class="center">No</th>
                            <th class="center">Kode Pembayaran</th>
                            <th class="center">Deskripsi</th>
                            <th class="center">Unit</th>
                            <th class="center">Volume</th>
                            <th class="center">Awal</th>
                            <th class="center">Akhir</th>
                            <th class="center">Tanggal Mulai</th>
                            <th class="center">Jam Mulai</th>
                            <th class="center">Tanggal Selesai</th>
                            <th class="center">Jam Selesai</th>
                        </tr>
                    </thead>
                    <tbody>
					<?php $i=1;?>
					<?php foreach($laporanHarianDetail as $row):?>
                        <tr class="gradeX">
                            <td class="center"><?=$i?></td>
                            <td class="center"><?=$row['pay_item']?></td>
                            <td class="center"><?=$row['uraian']?></td>
                            <td class="center"><?=$row['satuan']?></td>
                            <td class="center"><?=$row['volume']?></td>
                            <td class="center"><?=$row['awal']?></td>
                            <td class="center"><?=$row['akhir']?></td>
                            <td class="center"><?=$row['tanggal_mulai']?></td>
                            <td class="center"><?=$row['jam_mulai']?></td>
                            <td class="center"><?=$row['tanggal_selesai']?></td>
                            <td class="center"><?=$row['jam_selesai']?></td>
                        </tr>
					<?php $i++;endforeach; ?>
                    </tbody>
                </table>
            </div><!--contentinner-->
        </div><!--maincontent-->